{include file="public/header"}
<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-body">
      <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item">
          <label class="layui-form-label">上级菜单</label>
          <div class="layui-input-inline">
            <select name="pid" lay-filter="aihao">
              <option value="0">作为顶级菜单</option>
              {volist name="$menus" id="vo"}
                <option value="{$vo.id}" >{$vo.str|raw}{$vo.name}</option>
              {/volist}
            </select>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">名称</label>
          <div class="layui-input-inline">
            <input name="name" lay-verify="required" placeholder="输入菜单" autocomplete="off" class="layui-input" type="text">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">模块名</label>
          <div class="layui-input-inline">
            <input name="module" placeholder="输入模块名" autocomplete="off" class="layui-input" type="text" >
          </div>
          <div class="layui-form-mid layui-word-aux">如果仅作为父级菜单，请留空</div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">控制器名</label>
          <div class="layui-input-inline">
            <input name="controller" placeholder="输入控制器名" autocomplete="off" class="layui-input" type="text">
          </div>
          <div class="layui-form-mid layui-word-aux">如果仅作为父级菜单，请留空</div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">方法名</label>
          <div class="layui-input-inline">
            <input name="function" placeholder="输入方法名" autocomplete="off" class="layui-input" type="text">
          </div>
          <div class="layui-form-mid layui-word-aux">如果仅作为父级菜单，请留空</div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">参数</label>
          <div class="layui-input-inline">
            <input name="parameter" placeholder="请输入" autocomplete="off" class="layui-input" type="text">
          </div>
          <div class="layui-form-mid layui-word-aux">请用'&'隔开，例如：name=tingyu&id=10</div>
        </div>
        <div class="layui-form-item layui-form-text">
          <label class="layui-form-label">备注</label>
          <div class="layui-input-block" style="max-width:600px;">
            <input name="description" placeholder="请输入" class="layui-input" type="text" />
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">图标</label>
          <div class="layui-input-inline">
            <input name="icon" placeholder="请输入" autocomplete="off" class="layui-input" type="text">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">菜单类型</label>
          <div class="layui-input-inline">
            <select name="is_display" lay-filter="aihao">
              <option value="1">显示在左侧菜单</option>
              <option value="2">只做为操作节点</option>
            </select>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">节点类型</label>
          <div class="layui-input-inline">
            <select name="type" lay-filter="aihao">
              <option value="1">权限节点</option>
              <option value="2">普通节点</option>
            </select>
          </div>
          <div class="layui-input-inline">
            <div class="layui-form-mid layui-word-aux">注意：如果是菜单+权限节点，那么该菜单将对没有权限的角色隐藏</div>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">排序</label>
          <div class="layui-input-inline">
            <input name="sort" placeholder="请输入，例如99" autocomplete="off" class="layui-input" type="text" value="{$sort}">
          </div>
          <div class="layui-form-mid layui-word-aux">菜单排序排放，数值越小越靠前</div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">默认展开</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="checkbox" name="is_open" lay-skin="switch" lay-text="ON|OFF" value="1">
            </div>
            <div class="layui-form-mid layui-word-aux">仅支持到二级菜单</div>
          </div>
        </div>
        <div class="layui-form-item layui-hide">
          <input type="button" lay-submit lay-filter="layuiadmin-app-form-edit" id="layuiadmin-app-form-edit" value="编辑">
        </div>
      </div>
    </div>
  </div>
</div>
<script>
layui.use(['layer', 'form'], function() {
  // var $ = layui.jquery,
  //         layer = layui.layer,
  //         form = layui.form;
});
</script>
</body>
</html>